/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.risk.mapper;


import com.koron.risk.domain.PointManagement;
import org.apache.ibatis.annotations.Param;


import java.util.List;
import java.util.Map;

public interface PointManagementMapper {

    Integer insert(PointManagement point);

    PointManagement queryOne(@Param("id") String id);

    Integer update(PointManagement point);

    Integer delete(@Param("id") String id);

    List<PointManagement> getList(@Param("corpCode") String corpCode, @Param("name") String name, @Param("title") String title,
                                  @Param("type") String type,  @Param("operationType")Integer operationType, @Param("start") Integer start, @Param("pageSize") Integer pageSize);

    List<PointManagement> getAll();

    Map<String, Long> getSafetyCheckAnalysis(@Param("codeList") List<String> codeList, @Param("year") String year);

    Map<String, Long> getMaterialCheckAnalysis(@Param("codeList") List<String> codeList, @Param("year") String year);

    Map<String, Long> getDeviceCheckAnalysis(@Param("codeList") List<String> codeList, @Param("year") String year);

    Map getDangerousOperationAnalysis(@Param("codeList") List<String> codeList, @Param("operationTicketType") String operationTicketType, @Param("year") String year);

}
